package user;

import book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: fzykd
 * Date: 2022-05-07
 * Time: 18:27
 */
public abstract class User {
    protected String name;

    protected IOperation[] iOperations;

    public User(String name){
        this.name = name;
    }

    public abstract int menu(); // 不实现的话变为抽象方法


    public void doWork(int choice, BookList bookList){
        iOperations[choice].work(bookList);
    }
}
